//
//  YsResultModel.m
//  YsCloudFileManageSDK
//
//  Created by 宋宏康 on 2020/2/24.
//

#import "YsResultModel.h"
#import <YYKit/YYKit.h>

@implementation YsResultModel

- (NSString *)description
{
    return [self modelDescription];
}

- (BOOL)isSuccessful
{
    if ([self.code intValue] == 1) {
        return YES;
    }else{
        return NO;
    }
}

- (NSString *)errorMsg
{
    if (_errorMsg.isNotBlank) {
        return _errorMsg;
    }else{
        return _message;
    }
}
@end
